package site.yunnong.atvris.common.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author JinghaoZhang
 * @date 2021/6/16 20:34
 */
@Data
public class UserLoginFormParam {

//    @Size(min = 6, max = 18, message = "请输入合理的手机号或邮箱，长度在6-18之间")
//    @Pattern(regexp = "^((13[0-9]|14[5|7]|15[0-9]|18[0-9])\\d{8})|(\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*)$",
//            message = "请输入合理的大陆手机号或邮箱")
    @ApiModelProperty("手机号/邮箱")
    private String username;
//    @Pattern(regexp = "^(?=.*\\d)((?=.*[a-z])|(?=.*[A-Z]))[a-zA-Z0-9]{6,16}$",
//            message = "请输入带字母和数字的密码")
    @ApiModelProperty("密码")
    private String password;
//    @Pattern(regexp = "^[0-9]{6}$", message = "请输入六位数验证码")
    @ApiModelProperty("验证码")
    private String authCode;
}
